﻿//------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.Xml;

namespace Microsoft.ResourceManagement.Samples.ResourceManagementClient.WSEnumerate
{
    /// <summary>
    /// This class encapsulates a WS-Enumeration Renew Response.
    /// Please read the spec http://www.w3.org/Submission/WS-Enumeration/
    /// 
    /// A client receives this response after a Renew Request.
    /// </summary>

    [XmlRoot(ElementName = "RenewResponse", Namespace = Constants.NamespaceWSEnumeration)]
    public class RenewResponse
    {
        private String enumerationContext;
        private String expires;

        public RenewResponse()
        {
            this.EnumerationContext = String.Empty;
            this.expires = String.Empty;
        }

        
        /// <summary>
        /// The opaque string provided by the server to identify the enumeration context
        /// </summary>
        [XmlElement(ElementName = "EnumerationContext", Type = typeof(String))]
        public String EnumerationContext
        {
            get
            {
                return this.enumerationContext;
            }
            set
            {
                this.enumerationContext = value;
            }
        }

        
        /// <summary>
        /// The requested expriation time of the enumeration context.
        /// </summary>
        [XmlElement(ElementName = "Expires", Type = typeof(String))]
        public String Expires
        {
            get
            {
                return this.expires;
            }
            set
            {
                this.expires = value;
            }
        }
    }
}
